sum of cubes python program